package com.ruoyi.price.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 市场价格对象 market_price
 * 
 * @author shenke
 * @date 2025-08-31
 */
public class MarketPrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 大盘编码 */
    @Excel(name = "大盘编码")
    private String marketCode;

    /** 当前日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "当前日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date curDate;

    /** 前收盘价格 */
    @Excel(name = "前收盘价格")
    private BigDecimal preClosePrice;

    /** 开盘价格 */
    @Excel(name = "开盘价格")
    private BigDecimal openPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMarketCode(String marketCode) 
    {
        this.marketCode = marketCode;
    }

    public String getMarketCode() 
    {
        return marketCode;
    }

    public void setCurDate(Date curDate) 
    {
        this.curDate = curDate;
    }

    public Date getCurDate() 
    {
        return curDate;
    }

    public void setPreClosePrice(BigDecimal preClosePrice) 
    {
        this.preClosePrice = preClosePrice;
    }

    public BigDecimal getPreClosePrice() 
    {
        return preClosePrice;
    }

    public void setOpenPrice(BigDecimal openPrice) 
    {
        this.openPrice = openPrice;
    }

    public BigDecimal getOpenPrice() 
    {
        return openPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("marketCode", getMarketCode())
            .append("curDate", getCurDate())
            .append("preClosePrice", getPreClosePrice())
            .append("openPrice", getOpenPrice())
            .toString();
    }
}
